package filter;

import filter.FilterSetup.SomeObject;
import filter.FilterSetup.SomeType;

public class TypeFilter extends Filter<SomeObject> {

	private final SomeType typeX;

	public TypeFilter(SomeType type) {
		this.typeX = type;
	}
	
	@Override
	protected boolean matchesCriteria(SomeObject object) {
		return object.getType().equals(typeX);
	}

}
